package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 活动一次性订阅场景值新增
 */
@Getter
@Setter
@Document(collection = "sub_template_scene_config")
@CompoundIndexes({
        @CompoundIndex(name = "sub_template_scene_comIdx",def = "{'activityId':1,'templateId':1}")
})
public class SubTemplateSceneConfig extends EntityBase {

    private int scene =0;
    @Indexed
    private String templateId;
    @Indexed
    private String activityId;
    @Indexed
    private String appId;

}
